package torinoflickrdata.analysis;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Main2FOA {
	
	public static void main(String[] args)throws Exception{
	
		String file = "C:\\Users\\Alket\\codeindigo\\FlickrAPI\\Gianca";
	    List<FOA>list = new ArrayList<FOA>();
        list = FOAMethods.loadFOAOb(file);
        //List<String>list2 = new ArrayList<String>();
	    // FOAMethods.loadFOA(list, "C:\\Users\\Alket\\codeindigo\\FlickrAPI\\GiancaRaggioCorrispondences.csv");
	    Map<Integer, List<FOA>>map = new HashMap<Integer, List<FOA>>();
	    //map = FOAMethods.loadFOA2Map(file);
	    //list2 = FOAMethods.loadFOAObAsString(file);
	   
	    Collections.sort(list);
	    
	    map = FOAMethods.readFinalFile2Map(list);
	    Map<Integer, List<FOA>>results = new HashMap<Integer, List<FOA>>();
	    results = FOAMethods.findFalsePositives(map);
	    
	    FOAMethods.printMap2("GiancaFinalCorrisponedences.csv", results);
	    //FOAMethods.print("GiancaRaggioCorrispondences.csv", list2);
	    
	}
}
